package com.zhoutao.blog.seven.service.query;

import lombok.Data;


@Data
public class ArticleQuery {

    public final static ArticleQuery EMPTY = new ArticleQuery();
    private String tag;
    private String category;
    private String type;

    public static ArticleQuery of(String tag, String category) {
        return of(tag, category, null);
    }

    public static ArticleQuery of(String tag, String category, String type) {
        return new ArticleQuery()
                .setCategory(category)
                .setTag(tag)
                .setType(type);
    }

}
